package shop;

public class Cart {

	class commodit{
		private Goods goods;
		private int num;
		
		public double goodsfee(){
			return this.goods.price*this.num;
		}
	}
	
	public void add(){
		
	}
	
	public void delete(){
		
	}
	
	public void purchase(){
		
	}
	
	public double Total(commodit[] commodits){
		double sum=0.00;
		for(commodit a : commodits){
			sum += a.goodsfee();
		}
		return sum;
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
package shop;

public class Login {

	private User user;
	
	public static void display(){
		System.out.println("UI");
	}
	
	public boolean verify(String name, String pw, String idn){
		return true;
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
package shop;

public class Goods {

	private String name;
	protected double price;
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
package shop;

public class User {

	private String name;
	private String password;
	private String info;
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
